package com.example.demo.properties;

import com.example.demo.utils.YamlPropertySourceUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "my")
@PropertySource(value = "classpath:my.yml", factory = YamlPropertySourceUtil.class)
public class MyEntityProperties {
    private String name;
}
